<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首季营销限流服务</title>
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
    <link type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
    <link type="text/css" href="css/theme.css" rel="stylesheet">
    <link type="text/css" href="images/icons/css/font-awesome.css" rel="stylesheet">
</head>
<body>


<div class="wrapper">
    <div class="container">
        <div class="row">
            <div class="span9">
                <div class="content">

                    <div class="module">
                        <div class="module-head">
                            <h2>限流配置</h2>
                        </div>
                        <div class="module-body">
                            <form class="form-horizontal row-fluid">
                                <div class="control-group">
                                    <h4>限流总开关</h4>
                                    <label class="control-label">总开关：</label>
                                    <div class="controls">
                                        <label class="radio inline">
                                            <input type="radio" name="mainSwitch" value="1" id="switch_1"
                                                   onclick="changeMainSwitch('1')">开启
                                        </label>
                                        <label class="radio inline">
                                            <input type="radio" name="mainSwitch" value="0" id="switch_0"
                                                   onclick="changeMainSwitch('0')">关闭
                                        </label>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <h4>限流组配置</h4>
                                    <label class="control-label">限流组：</label>
                                    <div class="controls">
                                        <div class="input-prepend">
                                            <span class="add-on">组</span>
                                            <input type="text" class="span8" id="group_id">
                                        </div>
                                    </div>
                                    <br>
                                    <label class="control-label">限流参数：</label>
                                    <div class="controls">
                                        <div class="input-append">
                                            <input type="text" class="span8" id="group_sum">
                                            <span class="add-on">笔</span>
                                        </div>
                                        <div class="input-append">
                                            <input type="text" class="span8" id="group_timeOut">
                                            <span class="add-on">毫秒</span>
                                        </div>
                                        <a class="btn btn-primary" onclick="saveGroup()">保存</a>
                                    </div>
                                    <br>
                                </div>
                                <div class="control-group">
                                    <div class="module-body table" id="groupTable">
                                        <table cellpadding="0" cellspacing="0" border="0" class="datatable-1 table
                                        table-bordered table-striped	 display" width="100%">
                                            <thead>
                                            <tr>
                                                <th id="sortGroup-1"></th>
                                                <th>限流组</th>
                                                <th>限流参数</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="groupBody-1">
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <h4>限流交易配置</h4>
                                    <label class="control-label" style="float: left">渠道：</label>
                                    <div style="width: 20%;float: left;padding-left: 2.5%">
                                        <select class="span8" id="channelSelect">
                                            <option value="0">-请选择-</option>
                                            <option value="BANK_INSURANCE">银保</option>
                                            <option value="WECHAT">微信</option>
                                            <option value="AB_NET">大网</option>
                                            <option value="SALES_COUNTER">柜面</option>
                                            <option value="AB_FINANCIAL">安邦金融</option>
                                            <option value="CUSTOMER_CENTER">客户中心</option>
											<option value="SUPPORT">支撑</option>
                                            <option value="OTHERS">其他</option>
                                        </select>
                                    </div>
                                    <label class="control-label" style="float: left">交易：</label>
                                    <div style="width: 20%;float: left;padding-left: 2.5%">
                                        <select class="span8" id="tradeSelect">
                                            <option value="0">-请选择-</option>
                                            <option value="NEW_CONT">投保试算</option>
                                            <option value="INSURE">银保通投保</option>
                                            <option value="EDORCALC_CT">退保试算</option>
                                            <option value="EDORAPPLY_CT">退保申请</option>
                                            <option value="POLICY_QUERY">保单查询</option>
                                            <option value="ACCOUNT_QUERY">账户价值查询</option>
                                            <option value="WECHATRETURN_QUERY">微信回访</option>
                                            <option value="CUSTOMERLOGINTYPE2_QUERY">客户身份认证接口财富价值查询</option>
                                            <option value="CUSTOMERLOGINTYPENOT2_QUERY">客户身份认证接口非财富价值查询</option>
                                            <option value="OTHERS">其他</option>
											<option value="EDORCALC_MQ">满期领取试算</option>
                                            <option value="EDORAPPLY_MQ">满期领取申请</option>
                                        </select>
                                    </div>
                                    <div class="clear">
                                        <br>
                                    </div>
                                    <label class="control-label">限流组：</label>
                                    <div class="controls">
                                        <div class="input-prepend">
                                            <span class="add-on">CONFIG|</span>
                                            <input type="text" class="span8" id="tradeGroup">
                                        </div>
                                    </div>
                                    <br>
                                    <label class="control-label">返回术语配置(可选)：</label>
                                    <div class="controls">
                                        <div class="input-prepend">
                                            <span class="add-on">成功信息</span>
                                            <input type="text" class="span8" id="successStr">
                                        </div>
                                        <div class="input-prepend">
                                            <span class="add-on">失败信息</span>
                                            <input type="text" class="span8" id="failureStr">
                                        </div>
                                        <a class="btn btn-primary" onclick="saveTrade()">保存</a>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <div class="module-body table">
                                        <table cellpadding="0" cellspacing="0" border="0" class="datatable-2 table
                                        table-bordered table-striped	 display" width="100%">
                                            <thead>
                                            <tr>
                                                <th id="sortGroup-2"></th>
                                                <th>交易</th>
                                                <th>限流组</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="groupBody-2">
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>

                </div><!--/.content-->
            </div><!--/.span9-->
        </div>
    </div><!--/.container-->
</div><!--/.wrapper-->

<script src="scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="scripts/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="scripts/flot/jquery.flot.js" type="text/javascript"></script>
<script src="scripts/config.js" type="text/javascript"></script>
<script src="scripts/datatables/jquery.dataTables.js"></script>
</body>